<template>
    <h1>{{ "child" }}</h1>
    <button @click="handleClick">+2</button>
</template>

<script setup lang="ts">
import { defineEmits } from "vue";
const emit = defineEmits(["changeCount"]);

const handleClick = () => {
    emit("changeCount", 2);
};
</script>

<style scoped></style>
